package com.itheima.Method;

public class Method03 {
    public static void main(String[] args) {
        printHelloWorld(2,"HelloWorld!");
        printHelloWorld(3,"JavaEE");
    }

    public  static  void printHelloWorld(int count,String msg){
        for (int i = 0; i < count; i++) {
            System.out.println(msg);
        }
    }
}
